/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.business.customer.core.domain.service;

import info.peigen.hotpot.business.account.core.service.AccountService;
import info.peigen.hotpot.business.customer.core.domain.Customer;
import info.peigen.hotpot.business.customer.core.repository.entity.CustomerEntity;
import info.peigen.hotpot.business.customer.core.repository.mapper.CustomerMapper;
import info.peigen.hotpot.business.customer.core.repository.service.CustomerAuthenticationBaseRepository;
import info.peigen.hotpot.business.customer.core.repository.service.CustomerRepository;
import info.peigen.hotpot.business.customer.core.repository.service.PartnerRepository;
import info.peigen.hotpot.common.service.base.AbstractDomainService;
import org.noear.solon.annotation.Inject;


/**
 * <b>(AbstractCustomerDomainService)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/5/23
 */
public class AbstractCustomerDomainService extends AbstractDomainService<CustomerMapper, CustomerEntity> {
    @Inject
    CustomerRepository                   customerRepository;
    @Inject
    PartnerRepository                    partnerRepository;
    @Inject
    AccountService                       accountService;
    @Inject
    CustomerAuthenticationBaseRepository customerAuthenticationBaseRepository;

    Customer active(String customerId) {
        return customerRepository.active(customerId);
    }
}
